package com.example.demo.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

/**
 * 
 * @TableName delivery_order
 */
@TableName(value ="delivery_order")
public class DeliveryOrder implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    private Object id;

    /**
     * 
     */
    private String deliveryunit;

    /**
     * 
     */
    private String productname;

    /**
     * 
     */
    private String productnumber;

    /**
     * 
     */
    private String outnumber;

    /**
     * 
     */
    private String packmodel;

    /**
     * 
     */
    private String packname;

    /**
     * 
     */
    private String packnumber;

    /**
     * 
     */
    private String identifys;

    /**
     * 
     */
    private String trainingid;

    /**
     * 
     */
    private String userid;

    /**
     * 
     */
    private String packidentifys;

    /**
     * 
     */
    private String logisticsnumber;

    /**
     * 
     */
    private String type;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    /**
     * 
     */
    public Object getId() {
        return id;
    }

    /**
     * 
     */
    public void setId(Object id) {
        this.id = id;
    }

    /**
     * 
     */
    public String getDeliveryunit() {
        return deliveryunit;
    }

    /**
     * 
     */
    public void setDeliveryunit(String deliveryunit) {
        this.deliveryunit = deliveryunit;
    }

    /**
     * 
     */
    public String getProductname() {
        return productname;
    }

    /**
     * 
     */
    public void setProductname(String productname) {
        this.productname = productname;
    }

    /**
     * 
     */
    public String getProductnumber() {
        return productnumber;
    }

    /**
     * 
     */
    public void setProductnumber(String productnumber) {
        this.productnumber = productnumber;
    }

    /**
     * 
     */
    public String getOutnumber() {
        return outnumber;
    }

    /**
     * 
     */
    public void setOutnumber(String outnumber) {
        this.outnumber = outnumber;
    }

    /**
     * 
     */
    public String getPackmodel() {
        return packmodel;
    }

    /**
     * 
     */
    public void setPackmodel(String packmodel) {
        this.packmodel = packmodel;
    }

    /**
     * 
     */
    public String getPackname() {
        return packname;
    }

    /**
     * 
     */
    public void setPackname(String packname) {
        this.packname = packname;
    }

    /**
     * 
     */
    public String getPacknumber() {
        return packnumber;
    }

    /**
     * 
     */
    public void setPacknumber(String packnumber) {
        this.packnumber = packnumber;
    }

    /**
     * 
     */
    public String getIdentifys() {
        return identifys;
    }

    /**
     * 
     */
    public void setIdentifys(String identifys) {
        this.identifys = identifys;
    }

    /**
     * 
     */
    public String getTrainingid() {
        return trainingid;
    }

    /**
     * 
     */
    public void setTrainingid(String trainingid) {
        this.trainingid = trainingid;
    }

    /**
     * 
     */
    public String getUserid() {
        return userid;
    }

    /**
     * 
     */
    public void setUserid(String userid) {
        this.userid = userid;
    }

    /**
     * 
     */
    public String getPackidentifys() {
        return packidentifys;
    }

    /**
     * 
     */
    public void setPackidentifys(String packidentifys) {
        this.packidentifys = packidentifys;
    }

    /**
     * 
     */
    public String getLogisticsnumber() {
        return logisticsnumber;
    }

    /**
     * 
     */
    public void setLogisticsnumber(String logisticsnumber) {
        this.logisticsnumber = logisticsnumber;
    }

    /**
     * 
     */
    public String getType() {
        return type;
    }

    /**
     * 
     */
    public void setType(String type) {
        this.type = type;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        DeliveryOrder other = (DeliveryOrder) that;
        return (this.getId() == null ? other.getId() == null : this.getId().equals(other.getId()))
            && (this.getDeliveryunit() == null ? other.getDeliveryunit() == null : this.getDeliveryunit().equals(other.getDeliveryunit()))
            && (this.getProductname() == null ? other.getProductname() == null : this.getProductname().equals(other.getProductname()))
            && (this.getProductnumber() == null ? other.getProductnumber() == null : this.getProductnumber().equals(other.getProductnumber()))
            && (this.getOutnumber() == null ? other.getOutnumber() == null : this.getOutnumber().equals(other.getOutnumber()))
            && (this.getPackmodel() == null ? other.getPackmodel() == null : this.getPackmodel().equals(other.getPackmodel()))
            && (this.getPackname() == null ? other.getPackname() == null : this.getPackname().equals(other.getPackname()))
            && (this.getPacknumber() == null ? other.getPacknumber() == null : this.getPacknumber().equals(other.getPacknumber()))
            && (this.getIdentifys() == null ? other.getIdentifys() == null : this.getIdentifys().equals(other.getIdentifys()))
            && (this.getTrainingid() == null ? other.getTrainingid() == null : this.getTrainingid().equals(other.getTrainingid()))
            && (this.getUserid() == null ? other.getUserid() == null : this.getUserid().equals(other.getUserid()))
            && (this.getPackidentifys() == null ? other.getPackidentifys() == null : this.getPackidentifys().equals(other.getPackidentifys()))
            && (this.getLogisticsnumber() == null ? other.getLogisticsnumber() == null : this.getLogisticsnumber().equals(other.getLogisticsnumber()))
            && (this.getType() == null ? other.getType() == null : this.getType().equals(other.getType()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getId() == null) ? 0 : getId().hashCode());
        result = prime * result + ((getDeliveryunit() == null) ? 0 : getDeliveryunit().hashCode());
        result = prime * result + ((getProductname() == null) ? 0 : getProductname().hashCode());
        result = prime * result + ((getProductnumber() == null) ? 0 : getProductnumber().hashCode());
        result = prime * result + ((getOutnumber() == null) ? 0 : getOutnumber().hashCode());
        result = prime * result + ((getPackmodel() == null) ? 0 : getPackmodel().hashCode());
        result = prime * result + ((getPackname() == null) ? 0 : getPackname().hashCode());
        result = prime * result + ((getPacknumber() == null) ? 0 : getPacknumber().hashCode());
        result = prime * result + ((getIdentifys() == null) ? 0 : getIdentifys().hashCode());
        result = prime * result + ((getTrainingid() == null) ? 0 : getTrainingid().hashCode());
        result = prime * result + ((getUserid() == null) ? 0 : getUserid().hashCode());
        result = prime * result + ((getPackidentifys() == null) ? 0 : getPackidentifys().hashCode());
        result = prime * result + ((getLogisticsnumber() == null) ? 0 : getLogisticsnumber().hashCode());
        result = prime * result + ((getType() == null) ? 0 : getType().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", id=").append(id);
        sb.append(", deliveryunit=").append(deliveryunit);
        sb.append(", productname=").append(productname);
        sb.append(", productnumber=").append(productnumber);
        sb.append(", outnumber=").append(outnumber);
        sb.append(", packmodel=").append(packmodel);
        sb.append(", packname=").append(packname);
        sb.append(", packnumber=").append(packnumber);
        sb.append(", identifys=").append(identifys);
        sb.append(", trainingid=").append(trainingid);
        sb.append(", userid=").append(userid);
        sb.append(", packidentifys=").append(packidentifys);
        sb.append(", logisticsnumber=").append(logisticsnumber);
        sb.append(", type=").append(type);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}